package com.tqjc.plccontrol.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.tqjc.plccontrol.entity.PlcInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @projectName: BaotouSteel
 * @className: PlcinfoMapper
 * @author: Patienyon
 * @description: TODO
 * @date: 2023/6/13 9:57
 */
@Mapper
@DS("baotou")
public interface PlcInfoMapper  extends BaseMapper<PlcInfo> {

    /**
     * 分页查询指定行数据
     *
     * @param page 分页参数
     * @param wrapper 动态查询条件
     * @return 分页对象列表
     */

    IPage<PlcInfo> selectByPage(IPage<PlcInfo> page , @Param(Constants.WRAPPER) Wrapper<PlcInfo> wrapper);
}
